package com.lyl.syt.utils;/**
 * @author Mr.Luo
 * @date 2022-05-26 15:17
 */

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Mr.Luo
 * @date 2022-05-26 15:17
 * @desc 微信支付配置文件
 */
@Component
public class ConstantPropertiesUtils implements InitializingBean {
    @Value("${weixin.pay.appid}")
    private String appid;

    @Value("${weixin.pay.partner}")
    private String partner;

    @Value("${weixin.pay.partnerkey}")
    private String partnerkey;

    public static String APPID;
    public static String PARTNER;
    public static String PARTNERKEY;

    @Override
    public void afterPropertiesSet() throws Exception {
        APPID = appid;
        PARTNER = partner;
        PARTNERKEY = partnerkey;
    }

}
